﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace C_onsoleApp1
{
    delegate void DownStairDelegate();
    internal class ToolMan
    {
        private string name;

        public event DownStairDelegate DownStair = null;

        public ToolMan(string name)
        {
            this.name = name;
        }

        public void Print()
        {
            Console.WriteLine($"工具人:{name}下楼了");
            DownStair?.Invoke();
        }
    }
}
